home *** CD-ROM | disk | FTP | other *** search
- function NOF_DataObjects_OptionsTable(){
- this.__proto__ = NOF_DataObjects_OptionsTable.prototype;
-
- this.SUPER( NOF_TableTypes.NODELESS | NOF_TableTypes.ECOMM_CATALOG, "Options", "Id");
- this.__constructor__ = NOF_DataObjects_OptionsTable;
- }
-
- NOF_DataObjects_OptionsTable.inherits( NOF.DO.Table ); function NOF_DataObjects_OptionsTable_ProtoBuilder(){
- var member = NOF_DataObjects_OptionsTable.prototype;
- var method = NOF_DataObjects_OptionsTable.prototype;
-
- var NOF_DataObjects_OptionsTable_DDL = new Array(
- new NOF.DO.FieldInfo("Id", NOF.DO.FieldType.INTEGER, 0),
- new NOF.DO.FieldInfo("AttributesGroupId", NOF.DO.FieldType.INTEGER, 1),
- new NOF.DO.FieldInfo("Value", NOF.DO.FieldType.VARCHAR, 2),
- new NOF.DO.FieldInfo("Position", NOF.DO.FieldType.INTEGER, 3)
- );
-
- member.COL_ID = 0;
- member.COL_ATTRIBUTESGROUPID = 1;
- member.COL_VALUE = 2;
- member.COL_POSITION = 3;
-
- method.getDDL = function getDDL(){
- return NOF_DataObjects_OptionsTable_DDL;
- };
-
- method.selectByAttributesGroupId = function selectByAttributesGroupId( id ){
- return this.selectByFields( [new NOF.DO.FieldValue ("AttributesGroupId", id)]);
- }
-
- method.selectByAttributesGroupIdValue = function selectByAttributesGroupIdValue( agId, value ){
- return this.selectByFields([new NOF.DO.FieldValue("AttributesGroupId", agId),
- new NOF.DO.FieldValue ("Value", value)]);
- }
-
- method.deleteByAttributesGroupId = function deleteByAttributesGroupId( id ){
- return this.deleteByFields( [new NOF.DO.FieldValue ("AttributesGroupId", id)]);
- }
-
- method.deleteByAttributesGroupIdValue = function deleteByAttributesGroupIdValue( agId, value ){
- return this.deleteByFields([new NOF.DO.FieldValue("AttributesGroupId", agId),
- new NOF.DO.FieldValue ("Value", value)]);
- }
-
- method.updateById = function updateById( id, fields ){
- return this.updateByFields( [new NOF.DO.FieldValue ("Id", id)], fields);
- }
- }
-
- NOF_DataObjects_OptionsTable_ProtoBuilder();